\documentclass{article}

\usepackage[utf8]{inputenc}

% Related to math
\usepackage{amsmath,amssymb,amsfonts,amsthm}
\usepackage{hyperref}

\title{Data Appendix --- The impact of carbon prices on renewable energy support}
\author{Jan Abrell\thanks{Department of Environmental and Resource Economics, Environmental Management, ZEW - Leibniz-Centre for European Economic Research, jan.abrell@zew.de}
	\and Mirjam Kosch\thanks{Potsdam Institute for Climate Impact Research (PIK), mirjam.kosch@pik-potsdam.de}}

\begin{document}
	
\maketitle
	
\section{Prerequisites}
The regression analysis is performed using Python 3.8 using the \emph{statsmodels} framework. To replicate the results of the the regression
\begin{enumerate}
	\item Install the \href{https://www.anaconda.com/products/individual}{Anaconda 3.8} Python distribution.
	\item Install the \href{https://www.statsmodels.org/stable/index.html}{statsmodels} package. 
\end{enumerate}

\noindent To replicate the results of the numerical model you need:
\begin{enumerate}
	\item \href{www.gams}{GAMS} installed on your computer.
	\item A valid license for the CPLEX solver. 
	\item To process raw gdx files produced by GAMS, additional installation of the \href{https://www.gams.com/34/docs/API_PY_OVERVIEW.html}{GAMS Python API} is required.
\end{enumerate}

\section{Folder structure}
\begin{itemize}
	\item \textbf{gams} Contains all files for the numerical model.
	\item \textbf{ipython} Contains all files to run regressions and ex-post calculations.
	\item \textbf{data} Contains all data files.
	\item \textbf{results} Used to store all result files.
\end{itemize}

\section{Regression Analysis}
All files can be found the in the \emph{ipython} folder. The \emph{data} folder contains input data.
\begin{enumerate}
	\item Running the notebook \emph{1\_estimations.ipynb} performs all regressions including robustness exercises.
	\item Notebooks \emph{2\_Ex-post\_xxx.ipynb} perform ex-post calculations of the respective models.
\end{enumerate}
Final results are stored in the \emph{results} folder.

\section{Numerical Model}
The folder \emph{gams} contains the following files:
\begin{itemize}
	\item \textbf{main.gms} Main file to run the GAMS model. It includes all other GAMS files, implements, and solves the GAMS model.
	\item \textbf{report.gms} Defines reporting variables for the GAMS model.
	\item \textbf{carbon\_price\_constant\_fuel.gms} Scenario file: Solves model under specified carbon prices and fuel prices constant at the level of the beginning of the sample. This is the main specification used in the paper. 
	\item \textbf{carbon\_price\_constant\_fuel.bat} Batch file to solve main scenario for several carbon prices.  
	\item \textbf{observed.gms} Scenario file: Solves model under observed carbon and fuel prices.
	\item \textbf{carbon\_price.gms} Scenario file: Solves model under observed fuel prices with a specified carbon price level.
	\item \textbf{carbon\_price.bat} Batch file to solve carbon price scenario for several carbon prices. 
	\item \textbf{load\_data.py} Routines to convert gdx to csv files and to perform ex-post calculations.
	\item \textbf{Graph\_Subsidies\_by\_Carbon\_Price.ipynb} Calculates main results and graphs for numerical model.
\end{itemize}
Replicating the results of the numerical model requires the following steps:
\begin{enumerate}
	\item Run\emph{carbon\_price\_constant\_fuel.bat},
	\item Run \emph{Graph\_Subsidies\_by\_Carbon\_Price.ipynb}.
\end{enumerate}


\end{document}